<?php
$show_validator = true;
include TMPL_PATH.'public/header.phtml';
?>
<script type="text/javascript">
 
</script>
<script type="text/javascript">


    $(function(){
        $.formValidator.initConfig({formid:"myform",autotip:true,onerror:function(msg,obj){window.top.art.dialog({content:msg,lock:true,width:'200',height:'50'}, function(){this.close();$(obj).focus();})}});
        $("#age").formValidator({onshow:"请输入",onfocus:"请输入",oncorrect:"输入正确"}).inputValidator({min:1,onerror:"请输入"});
        $("#weight").formValidator({onshow:"请输入",onfocus:"请输入",oncorrect:"输入正确"}).inputValidator({min:1,onerror:"请输入"});
        $("#height").formValidator({onshow:"请输入",onfocus:"请输入",oncorrect:"输入正确"}).inputValidator({min:1,onerror:"请输入"});
        $("#neck").formValidator({onshow:"请输入",onfocus:"请输入",oncorrect:"输入正确"}).inputValidator({min:1,onerror:"请输入"});
        $("#jacket_back").formValidator({onshow:"请输入",onfocus:"请输入",oncorrect:"输入正确"}).inputValidator({min:1,onerror:"请输入"});
        $("#bicep").formValidator({onshow:"请输入",onfocus:"请输入",oncorrect:"输入正确"}).inputValidator({min:1,onerror:"请输入"});
        $("#sleeve").formValidator({onshow:"请输入",onfocus:"请输入",oncorrect:"输入正确"}).inputValidator({min:1,onerror:"请输入"});
        $("#wrist").formValidator({onshow:"请输入",onfocus:"请输入",oncorrect:"输入正确"}).inputValidator({min:1,onerror:"请输入"});
        $("#shirt").formValidator({onshow:"请输入",onfocus:"请输入",oncorrect:"输入正确"}).inputValidator({min:1,onerror:"请输入"});
        $("#chest").formValidator({onshow:"请输入",onfocus:"请输入",oncorrect:"输入正确"}).inputValidator({min:1,onerror:"请输入"});
        $("#stomach").formValidator({onshow:"请输入",onfocus:"请输入",oncorrect:"输入正确"}).inputValidator({min:1,onerror:"请输入"});
        $("#waist").formValidator({onshow:"请输入",onfocus:"请输入",oncorrect:"输入正确"}).inputValidator({min:1,onerror:"请输入"});
        $("#pants_hips").formValidator({onshow:"请输入",onfocus:"请输入",oncorrect:"输入正确"}).inputValidator({min:1,onerror:"请输入"});
        $("#pants").formValidator({onshow:"请输入",onfocus:"请输入",oncorrect:"输入正确"}).inputValidator({min:1,onerror:"请输入"});
        $("#crotch").formValidator({onshow:"请输入",onfocus:"请输入",oncorrect:"输入正确"}).inputValidator({min:1,onerror:"请输入"});
        $("#thigh").formValidator({onshow:"请输入",onfocus:"请输入",oncorrect:"输入正确"}).inputValidator({min:1,onerror:"请输入"});
        $("#knee").formValidator({onshow:"请输入",onfocus:"请输入",oncorrect:"输入正确"}).inputValidator({min:1,onerror:"请输入"});
        $("#shoulder").formValidator({onshow:"请选择",onfocus:"请选择",oncorrect:"正确"}).inputValidator({min:1,onerror:"请选择"});
        $("#chest_type").formValidator({onshow:"请选择",onfocus:"请选择",oncorrect:"正确"}).inputValidator({min:1,onerror:"请选择"});
        $("#stomach_type").formValidator({onshow:"请选择",onfocus:"请选择",oncorrect:"正确"}).inputValidator({min:1,onerror:"请选择"});
        $("#posture").formValidator({onshow:"请选择",onfocus:"请选择",oncorrect:"正确"}).inputValidator({min:1,onerror:"请选择"});

    });

   
</script>
<div class="subnav">

</div>
<div class="pad_10">
    <div class="common-form">
        <form method="post" enctype="multipart/form-data" name="myform" id="myform">
            <table width="100%" class="table_form contentWrap">
                <tr>
                    <td width="80">年龄</td>
                    <td><input type="text" class="input-text" id="age" name="measure[age]" value="<?php echo $measure_info['age']?>"/></td>
                </tr>
                <tr>
                    <td width="80">体重</td>
                    <td><input type="text" class="input-text" id="weight" name="measure[weight]" value="<?php echo $measure_info['weight']?>"/></td>
                </tr>
                <tr>
                    <td width="80">身高</td>
                    <td><input type="text" class="input-text" id="height" name="measure[height]" value="<?php echo $measure_info['height']?>"/></td>
                </tr>
                <tr>
                    <td width="80">脖围</td>
                    <td><input type="text" class="input-text" id="neck" name="measure[neck]" value="<?php echo $measure_info['neck']?>"/></td>
                </tr>
                <tr>
                    <td width="80">肩宽</td>
                    <td><input type="text" class="input-text" id="jacket_back" name="measure[jacket_back]" value="<?php echo $measure_info['jacket_back']?>"/></td>
                </tr>
                <tr>
                    <td width="80">袖肥</td>
                    <td><input type="text" class="input-text" id="bicep" name="measure[bicep]" value="<?php echo $measure_info['bicep']?>"/></td>
                </tr>
                <tr>
                    <td width="80">袖长</td>
                    <td><input type="text" class="input-text" id="sleeve" name="measure[sleeve]" value="<?php echo $measure_info['sleeve']?>"/></td>
                </tr>
                <tr>
                    <td width="80">袖口</td>
                    <td><input type="text" class="input-text" id="wrist" name="measure[wrist]" value="<?php echo $measure_info['wrist']?>"/></td>
                </tr>
                <tr>
                    <td width="80">衣长</td>
                    <td><input type="text" class="input-text" id="shirt" name="measure[shirt]" value="<?php echo $measure_info['shirt']?>"/></td>
                </tr>
                <tr>
                    <td width="80">胸围</td>
                    <td><input type="text" class="input-text" id="chest" name="measure[chest]" value="<?php echo $measure_info['chest']?>"/></td>
                </tr>
                <tr>
                    <td width="80">肚围</td>
                    <td><input type="text" class="input-text" id="stomach" name="measure[stomach]" value="<?php echo $measure_info['stomach']?>"/></td>
                </tr>
                <tr>
                    <td width="80">裤腰围</td>
                    <td><input type="text" class="input-text" id="waist" name="measure[waist]" value="<?php echo $measure_info['waist']?>"/></td>
                </tr>
                <tr>
                    <td width="80">臀围</td>
                    <td><input type="text" class="input-text" id="pants_hips" name="measure[pants_hips]" value="<?php echo $measure_info['pants_hips']?>"/></td>
                </tr>
                <tr>
                    <td width="80">裤长</td>
                    <td><input type="text" class="input-text" id="pants" name="measure[pants]" value="<?php echo $measure_info['pants']?>"/></td>
                </tr>
                <tr>
                    <td width="80">直裆</td>
                    <td><input type="text" class="input-text" id="crotch" name="measure[crotch]" value="<?php echo $measure_info['crotch']?>"/></td>
                </tr>
                <tr>
                    <td width="80">横裆</td>
                    <td><input type="text" class="input-text" id="thigh" name="measure[thigh]" value="<?php echo $measure_info['thigh']?>"/></td>
                </tr>
                <tr>
                    <td width="80">中档</td>
                    <td><input type="text" class="input-text" id="knee" name="measure[knee]" value="<?php echo $measure_info['knee']?>"/></td>
                </tr>
                <tr>
                    <td width="80">肩膀</td>
                    <td>
                        <select name="measure[shoulder]" id="shoulder">
                            <option value="0">请选择</option>
                            <option value="1" <?php if($measure_info['shoulder']==1){ echo "selected";}?>>高肩</option>
                            <option value="3" <?php if($measure_info['shoulder']==3){ echo "selected";}?>>正常肩膀</option>
                            <option value="5" <?php if($measure_info['shoulder']==5){ echo "selected";}?>>溜肩</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td width="80">胸部</td>
                    <td>
                        <select name="measure[chest_type]" id="chest_type">
                            <option value="0">请选择</option>
                            <option value="1" <?php if($measure_info['chest_type']==1){ echo "selected";}?>>胸肌发达</option>
                            <option value="3" <?php if($measure_info['chest_type']==3){ echo "selected";}?>>平坦的胸部</option>
                            <option value="5" <?php if($measure_info['chest_type']==5){ echo "selected";}?>>胸肌松弛</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td width="80">腹部</td>
                    <td>
                        <select name="measure[stomach_type]"  id="stomach_type">
                            <option value="0">请选择</option>
                            <option value="1" <?php if($measure_info['stomach_type']==1){ echo "selected";}?>>平腹</option>
                            <option value="3" <?php if($measure_info['stomach_type']==3){ echo "selected";}?>>微凸</option>
                            <option value="5" <?php if($measure_info['stomach_type']==5){ echo "selected";}?>>凸腹</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td width="80">姿势</td>
                    <td>
                        <select name="measure[posture]" id="posture">
                            <option value="0">请选择</option>
                            <option value="1" <?php if($measure_info['posture']==1){ echo "selected";}?>>笔挺</option>
                            <option value="3" <?php if($measure_info['posture']==3){ echo "selected";}?>>正常（不驼背）</option>
                            <option value="5" <?php if($measure_info['posture']==5){ echo "selected";}?>>驼背</option>
                        </select>
                    </td>
                </tr>
            </table>
             <input type="hidden" value="<?php echo $user_id;?>" name="user_id">
            <div class="bk15"></div>
            <input name="dosubmit" type="submit" value="提交" class="dialog" id="dosubmit">
        </form>
    </div>
</div>
</body>
</html>